#-*- coding:utf-8 -*-
from django.shortcuts import render
from django.http import HttpResponse
import datetime

# Create your views here.

def index(request):
    return HttpResponse("Hi, my dear daughter!")

def current_datetime(request):
    now = datetime.datetime.now()
    html = "<html><head><title>当前时间</title></head><body>当前系统时间：%s<body></html>" %now
    return HttpResponse(html)

def hello(request, name):
    ret = "Hello, %s"%name
    return HttpResponse(ret)
